package net.siren93.smh.service;

import net.siren93.smh.entity.TaskEntity;

import java.util.List;

/**
 * Created by siren93 on 15/10/12.
 */
public interface TaskService {
    TaskEntity findByName(String name);
    TaskEntity findById(int id);
    List<TaskEntity> findByEmployee(int id, int page, int rows);
    List<TaskEntity> findByProject(int id, int page, int rows);
    List<TaskEntity> listTask();
    void saveOrUpdate(TaskEntity entity);
    Integer save(TaskEntity entity);
    void delById(int id);
}
